package com.wteam.dragon.shop.pojo.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author 陈晓辉
 * @Date 2020/7/2 11:03
 */
@Getter
@Setter
public class ProductSortVo implements Serializable {
    private Long id;

    private Long parentId;

    @NotNull(message = "商品分类名称不能为空")
    private String name;

    @NotNull(message = "商品单位不能为空")
    private String productUnit;

    @Min(value = 0, message = "navStatus的值不能小于0")
    @Max(value = 1, message = "navStatus的值不能大于1")
    private Integer navStatus;

    @Min(value = 0, message = "showStatus的值不能小于0")
    @Max(value = 1, message = "showStatus的值不能大于1")
    private Integer showStatus;

    @Min(value = 0, message = "排序不能为负值")
    private Integer sort;

    private String icon;

    private String keywords;

    private String description;
}
